<?php
/**
 * 页面数据共享
 * AF
 */
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
class AppComposerView extends ServiceProvider
{
    public function boot()
    {
       View::composer(
           '*','App\Http\ViewComposers\WebComposer'
       );
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register() {
        //
    }
}
